<?php

use think\Route;

Route::group('client-api/v1', function () {
    // todo 用户模块
    Route::group('user', [
        'getToken' => ['api/v1.User/getToken', ['method' => 'GET']], // 获取测试用户token
        'login' => ['api/v1.Login/weChatLogin', ['method' => 'POST']], // 微信小程序登录
        'bindMobile' => ['api/v1.Login/bindMobile', ['method' => 'POST']], // 绑定手机号
        'setOpen' => ['api/v1.User/setOpen', ['method' => 'POST']], // 用户设置资料公开
        'setUserInfo' => ['api/v1.User/setUserInfo', ['method' => 'POST']], // 设置用户个人信息
        'setUserQualifications' => ['api/v1.User/setUserQualifications', ['method' => 'POST']], // 设置用户资质名称
        'setUserQualificationsPath' => ['api/v1.User/setUserQualificationsPath', ['method' => 'POST']], // 设置用户资质文件
        'getUserQualifications' => ['api/v1.User/getUserQualifications', ['method' => 'GET']], // 获取用户设置的资质
        'delQualifications' => ['api/v1.User/delQualifications', ['method' => 'POST']], // 删除资质证书
        'getUserInfo' => ['api/v1.User/getUserInfo', ['method' => 'GET']], // 获取用户设置的个人信息
        'addContent' => ['api/v1.User/addContent', ['method' => 'POST']], // 我的内容-新建详细内容
        'getContentList' => ['api/v1.User/getContentList', ['method' => 'GET']], // 我的内容-查询新建的详细内容
        'updateAuthStatus' => ['api/v1.User/updateAuthStatus', ['method' => 'POST']], // 我的内容-修改列表权限是否公开
        'delContent' => ['api/v1.User/delContent', ['method' => 'POST']], // 我的内容-列表内容删除
        'updateContentName' => ['api/v1.User/updateContentName', ['method' => 'POST']], // 我的内容-列表内容重命名
        'joinCollection' => ['api/v1.User/joinCollection', ['method' => 'POST']], // 我的内容-列表内容加入合集
        'uploadContentFile' => ['api/v1.User/uploadContentFile', ['method' => 'POST']], // 我的内容-新增批量上传文件的数据
        'getCollectionList' => ['api/v1.User/getCollectionList', ['method' => 'GET']], // 我的内容-合集列表获取
        'createCollection' => ['api/v1.User/createCollection', ['method' => 'POST']], // 我的内容-创建合集
        'delCollection' => ['api/v1.User/delCollection', ['method' => 'POST']], // 我的内容-删除合集
        'updateCollectionName' => ['api/v1.User/updateCollectionName', ['method' => 'POST']], // 我的内容-修改合集名称
        'getCollectionContent' => ['api/v1.User/getCollectionContent', ['method' => 'GET']], // 我的内容-获取合集下的内容列表
        'delCollectionContent' => ['api/v1.User/delCollectionContent', ['method' => 'POST']], // 我的内容-合集下的内容列表删除
        'collectionAddContent' => ['api/v1.User/collectionAddContent', ['method' => 'POST']], // 我的内容-合集下添加内容
        'getUserPublicContent' => ['api/v1.User/getUserPublicContent', ['method' => 'GET']], // 获取当前登录用户的公开内容
        'userHomeSearch' => ['api/v1.User/userHomeSearch', ['method' => 'GET']], // 用户主页搜索资质和内容
        'trainingCheckIn' => ['api/v1.User/trainingCheckIn', ['method' => 'POST']], // 培训打卡
        'getTrainingCheckInPoster' => ['api/v1.User/getTrainingCheckInPoster', ['method' => 'GET']], // 获取培训打卡并生成海报
        'addNewOtherInformation' => ['api/v1.User/addNewOtherInformation', ['method' => 'POST']], // 我的人脉-新建他人线下资料
        'joinSuccessOrFail' => ['api/v1.User/joinSuccessOrFail', ['method' => 'POST']], // 人脉关联同意或者拒绝
        'importOtherInformation' => ['api/v1.User/importOtherInformation', ['method' => 'POST']], // 我的人脉-导入新建他人线下资料
        'getMyTrainingCheckIn' => ['api/v1.User/getMyTrainingCheckIn', ['method' => 'GET']], // 获取我的人脉列表
        'searchAllTrainingCheckIn' => ['api/v1.User/searchAllTrainingCheckIn', ['method' => 'GET']], // 搜索所有人脉列表
        'uploadContentFileV2' => ['api/v1.User/uploadContentFileV2', ['method' => 'POST']], // 我的内容-新增批量上传文件的数据（新版）
        'downTemplate' => ['api/v1.User/actionDownTemplate', ['method' => 'GET']], // 我的人脉-导入新建他人线下资料模板下载
        'getOtherHome' => ['api/v1.User/actionGetOtherHome', ['method' => 'GET']], // 获取他人主页
        'getNetworkingDetail' => ['api/v1.User/actionGetNetworkingDetail', ['method' => 'GET']], // 根据id进入人脉详情
        'enterpriseQuery' => ['api/v1.User/enterpriseQuery', ['method' => 'GET']], // 对接企查查企业查询
        'queryExamine' => ['api/v1.User/queryExamine', ['method' => 'GET']], // 查询免费曝光审核
        'connectionsApply' => ['api/v1.User/connectionsApply', ['method' => 'POST']], // 未开通会员点击任意地方进行人脉申请
        'getMessageList' => ['api/v1.User/getMessageList', ['method' => 'GET']], // 获取我的消息列表
        'apply' => ['api/v1.User/apply', ['method' => 'POST']], // 消息列表同意和拒绝操作
        'realNameAuthentication' => ['api/v1.User/realNameAuthentication', ['method' => 'POST']], // 实名认证
        'checkJoin' => ['api/v1.User/checkJoin', ['method' => 'GET']], // 人脉关联-查询点击微信邀请链接进入关联的用户是否已被关联
        'recordRelatedNetworks' => ['api/v1.User/recordRelatedNetworks', ['method' => 'POST']], // 分享到微信邀请他人绑定记录
        'getCourseList' => ['api/v1.User/getCourseList', ['method' => 'GET']], // 平台老师-课程列表
        'getQualificationsList' => ['api/v1.User/getQualificationsList', ['method' => 'GET']], // 平台老师-资质列表
        'getCourseDetail' => ['api/v1.User/getCourseDetail', ['method' => 'GET']], // 平台老师-课程列表-进入课程详情
        'unbindPersonal' => ['api/v1.User/unbindPersonal', ['method' => 'POST']], // 我的人脉-解绑人脉
        'payMemberOrderDetail' => ['api/v1.User/payMemberOrderDetail', ['method' => 'GET']], // 购买会员的明细
        'updateTeacherStatus' => ['api/v1.User/updateTeacherStatus', ['method' => 'POST']], // 我的老师-权限修改公开不公开
        'getOfflineInformation' => ['api/v1.User/getOfflineInformation', ['method' => 'GET']], // 获取用户绑定的线下资料
        'checkMyJoinOther' => ['api/v1.User/checkMyJoinOther', ['method' => 'GET']], // 查询我与他人是否绑定关系
        'synchronous' => ['api/v1.User/synchronous', ['method' => 'POST']], // 一键同步名片
        'getInformationDetail' => ['api/v1.User/getInformationDetail', ['method' => 'GET']], // 根据线下资料ID获取线下资料详情
        'delInformationQualifications' => ['api/v1.User/delInformationQualifications', ['method' => 'POST']], // 删除线下资质证书
    ]);

    // todo 公共模块
    Route::group('common', [
        'getBanner' => ['api/v1.Common/getBanner', ['method' => 'GET']], // 获取banner
        'getBannerPositionType' => ['api/v1.Common/getBannerPositionType', ['method' => 'GET']], // 获取banner布局位置类型
        'getAgreementType' => ['api/v1.Common/getAgreementType', ['method' => 'GET']], // 获取协议类型
        'getAgreement' => ['api/v1.Common/getAgreement', ['method' => 'GET']], // 获取协议
        'getBaiDuAccessToken' => ['api/v1.Common/getBaiDuAccessToken', ['method' => 'GET']], // 获取百度AccessToken
        'getCateList' => ['api/v1.Common/getCateList', ['method' => 'GET']], // 获取课程 & 课程 & 行业分类
        'getMemberCard' => ['api/v1.Common/getMemberCard', ['method' => 'GET']], // 获取会员套餐
        'getCommonConfig' => ['api/v1.Common/getCommonConfig', ['method' => 'GET']], // 获取后台配置
        'getQualificationsDetail' => ['api/v1.Common/getQualificationsDetail', ['method' => 'GET']], // 获取资质详情
        'getInformationQualificationsDetail' => ['api/v1.Common/getInformationQualificationsDetail', ['method' => 'GET']], // 获取线下资料资质详情
    ]);

    // todo 订单
    Route::group('order', [
        'payMemberOrder' => ['api/v1.Orders/payMemberOrder', ['method' => 'POST']], // 用户购买会员下单
    ]);

    // todo 上传
    Route::group('uploads', [
        'uploads' => ['api/Common/upload', ['method' => 'POST']], // 上传文件
    ]);

    // todo 微信回调
    Route::group('notify', [
        'weChatOrderNotify' => ['api/v1.Notify/weChatOrderNotify', ['method' => 'POST']], // 微信支付
    ]);
});